@config.main("Differentially accumulated proteins (DAPs)") {

    <div class="body-box">
        <div class="page-box">

            @config.subTitle("Differentially accumulated proteins (DAPs) in Medicago sativa L.cv.Gannong No.3 roots subject to PEG-induced osmotic stress")

            <div class="main-body">

                <table id="table" data-pagination="true" data-advanced-sortable="true"
                data-page-list="[10]">

                </table>


            </div>
        </div>
    </div>

    <script>

        $(function (){

            $.post("@routes.ProteomicsController.getDiffData",(data)=>{
                let columns = []
                $.each(data.header,(i,v)=>{
                    columns.push({
                        field:`${i}`,
                        title:v,
                        sortable:true,
                        searchType:"text"
                    })
                })
                $("#table").bootstrapTable({
                    data:data.data,
                    columns:columns
                })


            })

        })

    </script>

}


